const path = require('path');
const WebpackCleanupPlugin = require('./plugins/DonePlugin')
// const { CleanWebpackPlugin } = require('clean-webpack-plugin');

module.exports = {
  mode: "development",
  // JavaScript 执行入口文件
  entry: './src/main.js',
  devtool: "source-map",
  output: {
    // 把所有依赖的模块合并输出到一个 bundle.js 文件
    filename: "[name].[chunkhash].js",
    // 输出文件都放到 dist 目录下
    path: path.resolve(__dirname, './dist'),
  },
  plugins: [
    new WebpackCleanupPlugin({ name: "ll" }),
  ]
};